package com.feign.feignClient.client;

import com.feign.feignClient.entity.Person;
import feign.Headers;
import feign.Param;
import feign.RequestLine;


public interface PersonClient {

    /**
     * 请求路径为 /person/{id}
     */
    @RequestLine("PUT /person/{id}")
    Person getPerson(@Param("id") Long id);

    /**
     * 请求路径为 /personSaveJson/
     * application/json格式提交数据
     */
    @RequestLine("POST /personSaveJson")
    @Headers(value = "Content-Type: application/json")
    String personSaveJson(Person person );



}
